#ifndef SOCKET_DEAL_WITH_H_
#define SOCKET_DEAL_WITH_H_
#include <stdlib.h>
#include <gtk/gtk.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>

#define SERVERPORT	8080
#define BACKLOG		1024
#define MAXBUFSIZE	128
#define LOGIN		1
#define SENDMESSAGE	2
void *socket_start(void);
int pthread_socket_start(void);
void *deal_with_recv(char *buf, int client_fd);
void check_account(char *buf, int client_fd);
void getRequest(char *buf, int client_fd);
void setRequest(char *buf, int client_fd);
#endif
